import axios from "axios";

export function getTodos() {
  return axios({
    url: "https://api.yizhanketang.cn/api/v1/todos",
  });
}

export function creatTodo(data) {
  return axios({
    method: "POST",
    url: "https://api.yizhanketang.cn/api/v1/todos",
    data,
  });
}
